
package kr.hkit.powerjava.chther04;

import java.util.Scanner;

public class programming2 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int a;//받은돈
		int b;//상품가격
		int c;//부가세
		int d;//잔돈
		
		System.out.print("받은돈입력:");
		a=input.nextInt();
		System.out.print("상품총액:");
		b=input.nextInt();
		c=b/10;//부가세계산
		d=a-b;//잔돈계산
		
		System.out.println("부가세:"+c);
		System.out.println("잔돈:"+d);
	}
}
